class Student {
  int a;         //initialized to zero for each object
  static int b; //initialized to zero only when class is loaded not for each object created.

  Student(){
   //Constructor incrementing static variable b
     b++;
  }
   public void showData(){
      System.out.println("Value of a = " + a);
      System.out.println("Value of b = " + b);
   }

   //public static void increment(){
      //a++;
   //}

}

public class Demo{
   public static void main(String args[]){
     Student s1 = new Student();
     s1.showData();
     Student s2 = new Student();
     s2.showData();
     //Student.b++;
     //s1.showData();
     //s1.increment();
     //s1.showData();
     //s2.showData();
  }
}
